<title>State</title>
<div id="view-content">
    <div class="row-fluid">
        <div class="span6">
            <div class="well span6">
                <?= $this->form ?>
            </div>
            <div class="well span6">
                <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>State Name</th>
                            <th></th>
                        </tr>
                    </thead>
                    <?php 
                    $index = 1;
                    foreach ($this->allState as $state) : ?>
                        <tr>
                            <td><?=$index?></td>
                            <td><?= $state['name'] ?></td>
                            <td><a class="btn btn-small" href="<?=$this->url(array('id'=>$state['id']),'state-update');?>"><i class="icon-edit"></i> Edit</a></td>
                        </tr>
                        <?php
                        $index++;
                    endforeach;
                    ?>
                </table>
            </div>
        </div>
    </div>
</div>